import request from '@/utils/request'

// 查询申论试卷列表
export function listPapers(query) {
  return request({
    url: '/compare/papers/list',
    method: 'get',
    params: query
  })
}

// 查询申论试卷详细
export function getPapers(id) {
  return request({
    url: '/compare/papers/' + id,
    method: 'get'
  })
}

// 新增申论试卷
export function addPapers(data) {
  return request({
    url: '/compare/papers',
    method: 'post',
    data: data
  })
}

// 修改申论试卷
export function updatePapers(data) {
  return request({
    url: '/compare/papers',
    method: 'put',
    data: data
  })
}

// 删除申论试卷
export function delPapers(id) {
  return request({
    url: '/compare/papers/' + id,
    method: 'delete'
  })
}
